When editing a tag except, the displayed "characters left" disagrees with the character count used by the error message:

screen shot

As you can see from the screen shot, the "characters left" indicates that the text length is within limit, but the error message indicates the text length is too long by 3 characters.

Experimentation lead me to conclude that new line chars are not counted by the "characters left" indicator, but are counted by the code that generates the error message.

To reproduce, use this text (not including the final new line):

Lorem ipsum dolor sit amet, consectetur adipiscing elit. 
Etiam fringilla, ipsum eget facilisis tristique, est arcu convallis sem, vitae volutpat lectus lectus eu neque.
Aenean porttitor, diam in gravida finibus, massa sapien egestas leo, eu aliquet nisi felis ut velit.
Curabitur condimentum dui congue dolor ornare, sed semper risus tristique. Phasellus eros ligula, vehicula vitae sapien ut, lobortis aliquam ante. Sed accumsan vestibulum tempus. Cras aliquet

1 Answer 1


There was a slight difference in how line-endings were being counted on the serverside (CRLF) vs clientside (LF). This should now be consistent, in that we normalize to CRLF on the clientside too (newlines count as 2 characters).

The fix will be deployed with the next build (build rev 2016.5.9.4490 on MSE/MSO, 2016.5.9.3554 on sites)

  • Quick work. But I would have thought that 1 char per new line (ie LF) would be the standard as it's one keystroke (plus whenever I pit Linux against Windows I make sure Linux wins)
    – Bohemian
    Commented May 9, 2016 at 10:20
  • @Bohemian SE is using Windows, for good and for bad. :) Commented May 9, 2016 at 10:21

You must log in to answer this question.

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