Bug 42 - try to put single quotes in a title format and bad things happen
: try to put single quotes in a title format and bad things happen
Status: RESOLVED WONTFIX
Product: Logitech Media Server
Classification: Unclassified
Component: Web Interface
: unspecified
: All All
: P2 minor (vote)
: ---
Assigned To: Blackketter Dean
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2003-12-19 19:53 UTC by Blackketter Dean
Modified: 2005-02-05 10:00 UTC (History)
0 users

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Blackketter Dean 2003-12-19 19:53:29 UTC
From: "chr_ne" 
Date: Thu Jun 12, 2003  3:01:20  AM US/Pacific
Subject: [slimp3-users] Song Title Format wrong without TRACKNUM

hi,

I have changed the Song Title Format to >TRACKNUM. 'TITLE' 
von 'ARTIST' aus 'ALBUM'< (without <>).
Everything works fine - but if the song has no TRACKNUM-tag than the 
display looks like >TITLE' von 'ARTIST' aus 'ALBUM'< without the 
leading character '.

Perhaps there is a mistake in the routine?

Christoph
Comment 1 Robert Moser II 2004-12-15 19:19:14 UTC
This is working correctly according to the current design.  When an element of 
the format string is missing, the results will collapse any spacer characters 
around the missing element as in the following example, where E# is an element 
and P# is spacer text (spaces for clarity only)

E1 P1 E2 P2 E3 P3 E4

If E1 is missing but everything else is present, the output will be like this:

E2 P2 E3 P3 E4

If E2 is missing with everything else present, the output will look like this:

E1 P1 E3 P3 E4

If E4 is missing with everything else present, the output will look like this:

E1 P1 E2 P2 E3

There are undocumented ways of changing this behaviour, which were considered 
too difficult to understand for general use.
Comment 2 Dan Sully 2005-02-05 10:00:24 UTC
Marking this as "works as designed".