What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 134 Stack Exchange communities.

No big deal, but if you add one char to a question, the edit history says it's adding 5.

Thought you should know.

share|improve this question
    
So, would this be status-norepro, because adding one character really does add one character, or status-bydesign, because the system is designed to include the whitespace in the character count? Going no-repro for now. –  Joel Coehoorn Oct 12 '09 at 16:23

2 Answers 2

up vote 4 down vote accepted

I think the reason for the discrepancy in the characters is that carriage return and line feed are counted separately so two carriage returns = 4 chars, plus the char you thought you added = 5.

Carriage return + Line feed + Carriage return + Line feed + character

share|improve this answer
    
Less discrepancy and more enthusiasm. Once more, with hidden characters. –  random Oct 12 '09 at 12:56
    
Maybe discrepancy needed some clarification in that there was a discrepancy between our understanding of the character count and what was actually being counted. –  BenAlabaster Oct 12 '09 at 13:40

Let's take your most recent edit as an example here...

Original:

Are there any best practices surrounding this practice? I'd be interested to hear others' thoughts on the subject.

Revised:

Are there any best practices surrounding this practice? I'd be interested to hear others' thoughts on the subject.

x

You're not counting the newlines added, which the diff (apparently) is, in the character count.

share|improve this answer
    
That's the one, @benalabaster & I are trying to figure out how other public wiki type sites manage concurrency. –  John MacIntyre Oct 12 '09 at 12:53
    
Who says they do? –  alex Oct 12 '09 at 13:15
1  
@alex - Well "Last in wins" is a way of managing concurrency. –  John MacIntyre Oct 12 '09 at 13:38

You must log in to answer this question.

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