Joel de Guzman wrote:
> John Maddock wrote:
>> Joel de Guzman wrote:
>>>> But the most annoying feature at present is that using symbol
>>>> templates like [alpha], any trailing spaces are ignored and you must
>>>> write [alpha][space] to get a space before the next character.
>>> This one too.
>> How about:
>>
>> [template alpha '''α'''] [/ a Greek small letter alpha]
>> [template beta '''β'''] [/ ß Greek small letter beta]
>> [template super[x]'''<superscript>'''[x]'''</superscript>''']
>> [template sub[x]'''<subscript>'''[x]'''</subscript>''']
>>
>> This letter [alpha] should have a space either side of it.
>>
>> As should [alpha] + [beta].
>>
>> These two should not [alpha][beta].
>>
>> And neither should this [alpha][sub 1][super 2].
>>
>> So a complex example is [alpha][super 2] + [beta][super 3] which should have
>> spaces in the right places only!
>
> Alright. The first step is to correct the nullary templates:
>
> [template alpha[]'''α''']
> [template beta[]'''β''']
>
> See the section Nullary Templates for explanations. As for the
> trailing space, I'm investigating.
Fixed. The no-space after the squiggle was an escape bug.
The space before the squiggle is as expected (as mentioned
above). Please change nullary templates to:
[template name[]stuff]
The space after the identifier in:
[template name stuff]
is significant and is considered as part of the body.
Perhaps I should disallow the second form to make it clear?
Thoughts?
Regards,
--
Joel de Guzman
http://www.boost-consulting.com
http://spirit.sf.net
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-docs mailing list
[email protected]
Unsubscribe and other administrative requests:
https://lists.sourceforge.net/lists/listinfo/boost-docs