← Back to team overview

widelands-dev team mailing list archive

Re: Text formatting questions

 

The basic problem is in the usage of the speech() function - is I
remember right, our rt functions don't allow us to open a paragraph
within a paragraph.

You could try mimicking HTML's <ul> and </ul> to put around the list,
but make sure you test all instances of lists to make sure you don't
have to close paragraphs manually before the list / open a new one
manually after the list.

The idea of the listdivider() was to have less space between items in a
list, so it's smaller than the paragraphdivier().



09/10/2014 18:32, sgrìobh wl-zocker:
> The paragraphdivider and the listdivider you wrote in some branch both
> close a non-existing paragraph (i.e. they have </p> without preceding
> <p>). This is no good style I think. At the moment, there is no problem,
> but I fear it could break quite easily. Furthermore, they live a rather
> large gap (I have not yet tested your listdivider).
> I have two possibilities in my mind: Either introduce a "open_paragraph"
> which only opens one, or maybe I could rework the listitem function to
> return p(symbol .. text) instead of symbol .. text .. paragraphdivider.
> Thinking of it, the latter one might be the better option. Could that work?
> 
> -----Ursprüngliche Nachricht----- From: Fòram na Gàidhlig
> Sent: Thursday, October 09, 2014 6:54 PM
> To: widelands-dev@xxxxxxxxxxxxxxxxxxx
> Subject: Re: [Widelands-dev] Text formatting questions
> 
>> 2) Good explanation. Maybe it helps with
>> https://bugs.launchpad.net/widelands/+bug/1366580
> 
> You'lll just have to add the paragraphdivider for now - I don't see any
> other way of coding this at the moment.
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~widelands-dev
> Post to     : widelands-dev@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~widelands-dev
> More help   : https://help.launchpad.net/ListHelp
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~widelands-dev
> Post to     : widelands-dev@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~widelands-dev
> More help   : https://help.launchpad.net/ListHelp
> 
> 
> -----
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2014.0.4765 / Virus Database: 4040/8353 - Release Date: 10/09/14
> 
> 
> 


References