FS#9640 - WPS comments "eat" line-endings

Attached to Project: Rockbox
Opened by Jonas Häggqvist (rasher) - Sunday, 14 December 2008, 18:01 GMT
Last edited by Jonathan Gordon (jdgordon) - Sunday, 15 August 2010, 14:22 GMT
Task Type Bugs
Category Themes
Status Closed
Assigned To No-one
Operating System All players
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


Comments in WPS files act very strangely if they're not on a line of their own. The following (and attached) wps demonstrates this:

Artist: %ia
Title: %it
Artist: %ia# Comment
Title: %it# Comment

Expected output:
Artist: Dire Straits
Title: Walk Of Life
Artist: Dire Straits
Title: Walk Of Life

Actual output:
Artist: Dire Straits
Title: Walk Of Life
barArtist: Dire StraitsTitle: Walk Of Life

It seems to me that comment-characters should only "eat" line-endings if they're at the beginning of a line?

This behaviour was introduced in r13140 (, seemingly on purpose, but I don't think "inline" comments were considered - that's why I'm adding this as a bug.

As a note, at least one WPS in SVN uses this behaviour to break a long line, so if it's fixed, that WPS should be modified as well.
   test.wps (0.1 KiB)
This task depends upon

Closed by  Jonathan Gordon (jdgordon)
Sunday, 15 August 2010, 14:22 GMT
Reason for closing:  Wont Fix
Additional comments about closing:  it seems that this behaviour is wanted. feel free to reopen and bring it up on the ml or irc if you want.
Comment by Jonathan Gordon (jdgordon) - Wednesday, 09 September 2009, 06:12 GMT Comment by Jonathan Gordon (jdgordon) - Tuesday, 15 December 2009, 07:30 GMT
re-reading that forum thread confused me... did we actually come to a consensus at all? or should we close this because its not going to be fixed?