Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  How to handle tags which eat the new line in the old parser?
« previous next »
  • Print
Pages: [1]

Author Topic: How to handle tags which eat the new line in the old parser?  (Read 1763 times)

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
How to handle tags which eat the new line in the old parser?
« on: June 12, 2010, 11:34:05 PM »
One of the reasons for changing the skin format recently was because we are getting a brad new (quite awesome) parser and display engine (which is still being worked on).

My problem is alot of tags eat the whole rest of the line, for example %xl(), %we/d/i, %X, etc. We already saw this issue with %V and worked around that, but I wonder how we should deal with all those tags?

One possible option is doing pretty much what has been done since condiionl viewports went in... Dont do any drawing before the first %V() line. This will be done anyway but there still will be problems if you put those lines inside viewports (all your lines will be pushed down...).

A simple solution is forcing you to put a # at the end of the line (which will then join the next line onto the current one which will fix the problem) but that isnt really the best idea.

Another possible option is if the line has any of a set of tags it will never cause a new line? Then we only need to get the list of such tags (pretty easy to find)...

Which sounds like the best way to go?
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  How to handle tags which eat the new line in the old parser?
 

  • SMF 2.0.19 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.515 seconds with 21 queries.