30

I was going to clean up this question earlier, but I found something odd: The question begins with "Dear," but when you edit the question it's not there. I forwent editing to not hide a potential bug.

Why isn't the text showing up in edit?

4
  • 17
    Probably due to auto-fluff removal. Commented Oct 8, 2015 at 19:40
  • 10
    The answer is caching: Edit source differs from question view or are we each others friends now
    – jscs
    Commented Oct 8, 2015 at 19:58
  • If you just save the edit (with the Dear removed), does it work? If not, this might still be a bug (what if the only thing wrong was the Dear?), if a minor one. Commented Oct 9, 2015 at 14:17
  • I'm not sure how to test that at this point. I tried a rollback and, as expected, it didn't bring back the phantom word.
    – Gary
    Commented Oct 9, 2015 at 18:15

1 Answer 1

49

Certain words like "hi", "dear" etc. are automatically removed if they appear at the start of a question.

This was not part of the original features of Stack Overflow so there will be questions that predate this feature that still have these "fluff" words (thanks BradleyDotNET). However, when you edit the post, the "auto-fluff removal" kicks in and deletes the unnecessary verbiage.

In fact the text may have already been removed from the post, but the HTML used to display the post hasn't been regenerated. It's heavily cached for speed. So when you go to edit the post the HTML is recreated and the word disappears.

5
  • 1
    That makes perfect sense. I removed the bug tag from my question.
    – Gary
    Commented Oct 8, 2015 at 20:00
  • 8
    This is not quite accurate: the text is already removed in the DB, but the contents of the post are cached, and only re-fetched when the edit happens. An unimportant difference, but the Meta.SE post I linked above explains the whole thing.
    – jscs
    Commented Oct 8, 2015 at 20:00
  • @JoshCaswell - Oh. I thought it would only happen on a resubmit of the text.
    – ChrisF Mod
    Commented Oct 8, 2015 at 20:00
  • 1
    Background: This feature was added in June 2011. See the original post by Jeff Atwood about this feature (to question Should 'Hi', 'thanks,' taglines, and salutations be removed from posts?). Commented Oct 10, 2015 at 8:49
  • 2
    Sorry to bother you with cross-site clarification, but is your answer (that "automatic removal" part) applicable on other network sites as well? For example, this question still has that "Hi" fluff intact.
    – user47
    Commented Oct 10, 2015 at 23:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .