]> git.donarmstrong.com Git - lilypond.git/commit
Properly implement fromproperty markup handing in the pdftitle header field
authorReinhold Kainhofer <reinhold@kainhofer.com>
Fri, 27 Jul 2012 00:22:55 +0000 (02:22 +0200)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Tue, 7 Aug 2012 11:05:35 +0000 (13:05 +0200)
commit623fac8d645e4078af36758af5d437c5eb39e793
tree00005361312136539c329ac5d667888e41dd2213
parent1999a1bdb8c925ca279d79b330ba6497200445eb
Properly implement fromproperty markup handing in the pdftitle header field

The pdftitle header field is obtained by trying to convert the markup into a pure string.
Fromproperty markups need to be handled specially, since we have to mimick the header field
lookup in the conversion function... Thus we have to pass the header block to the
markup->string function and extract the header property values for fromproperty markups.

To keep the previous public API without the header argument working, the header
block is passed as an optional argument.

To prevent infinite loops, after looking up a header field, we temporarily
set it to an empty string for the following lookups. This is done by creating
a temporary guile module with that variable cleared.
scm/framework-ps.scm
scm/markup.scm