Follow-up Comment #5, bug #5301 (project savane):

> The only requirement for this function is that it can start with any tag.
> There must not be any previously opened tag (like <p>).

Hum, on the contrary to fit well, it should actually works by assuming that
<p> is opened and will be closed </p> afterwards.

Ok, we could say it would be cleaner that utils_wiki_markup() open and close
it itself but: But in some cases we may not want that. 

- What we are sure is that we almost always want   
tils_wiki_markup() to run in a <p> block, but we are not sure that we always
want to start that block the moment where we start utils_wiki_markup(). 
- In some cases, we may want to use utils_wiki_markup() in context where it
is actually not in a <p> block. It is the cases like CC comment, or attached
file comment. And in this cases, no complex formatting is allowed anyway:
only links and bold, italic.

So actually, it will be just easier for us if utils_wiki_markup() give us the
latitude of decide if we want to be in <p> context, but it should be in
comment that if we decide to use utils_wiki_markup somewhere and to allow
high level formatting (list, headers, hr), then we have to make sure by
ourselves that we are in an opened <p> block.



    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?func=detailitem&item_id=5301>

_______________________________________________
  Message posté via/par Gna!
  http://gna.org/


_______________________________________________
Savane-dev mailing list
[email protected]
https://mail.gna.org/listinfo/savane-dev

Reply via email to