Ticket #699 (closed enhancement: wontfix)
Interpretation wiki texte préformaté même si non nécessaire
| Reported by: | CyberSDF | Owned by: | olivier |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.2 |
| Component: | module:clearbricks | Version: | 2.1 |
| Severity: | normal | Keywords: | clearbricks wiki2xhtml |
| Cc: |
Description
Si dans le texte on laisse une ligne vide ne contenant qu'un espace, il y aura l'interprétation wiki de la demande d'un texte préformaté et la génération html sera <pre></pre>
Il serait intéressant de modifier la regexp afin de vérifier si il il y a bien des caractères après l'espace.
Change History
comment:1 Changed 16 years ago by xave
- Type changed from defect to enhancement
- Component changed from module:core to module:clearbricks
comment:3 Changed 16 years ago by lmagnin
Nouvelle tentative, patch :
552c552
< elseif ($this->getOpt('active_pre') && preg_match('/^[ ]{1}(.*)$/',$line,$cap))
---
> elseif ($this->getOpt('active_pre') && preg_match('/^[ ]{1}(.+)$/',$line,$cap))
comment:4 Changed 15 years ago by xave
- Status changed from new to closed
- Resolution set to wontfix
Mmmh... Nan. Ça crée de toutes façons un paragraphe vide, ce qui n'est pas tellement mieux au final, et ça empêche de créer des blocs préformatés incluant des lignes vides. On enlèverait donc un possibilité pour gérer les gens qui font des mauvaises manips, pas d'accord.
Note: See
TracTickets for help on using
tickets.
