Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Some line break symbols are ignored in Properties dialog (Read 891 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Some line break symbols are ignored in Properties dialog

Some line break symbols are ignored in Properties dialog. As in field UNSYNCEDLYRICS in this file, for example - https://www.dropbox.com/s/4xcacs3zt3587kj/01.%20Shrouds%20of%20Celeste--.flac?dl=1

But 3rd party component foo_uie_lyrics3 does display line breaks correctly in UI element. Also text is displayed correctly with line breaks if copied and pasted into Notepad++.
fb2k 1.6.11, Windows 7. UNSYNCEDLYRICS is added to multiline fields in fb2k's settings.

 

Re: Some line break symbols are ignored in Properties dialog

Reply #1
Different linebreak conventions across operating systems: https://www.editpadpro.com/tricklinebreak.html
A good text editor can handle all. In Notepad++ you can convert between them with Edit -> EOL Conversion.

But yeah, a smarter "Clean up" function is on my wishlist. Not only fix leading/trailing spaces, but ...


Re: Some line break symbols are ignored in Properties dialog

Reply #2
So it seems that text in tag was originally created on Mac OS or Unix OS. It also can be fixed directly in fb2k using "Format from other fields" $replace(%unsyncedlyrics%,$char(10),$char(13)$char(10))

But, according to Wikipedia, Unicode standard defines that LF ($char(10)) should be recognized as line terminator, just like CR+LF ($char(13)$char(10)) - https://en.wikipedia.org/wiki/Newline#Unicode