Dotclear

Ticket #699 (closed enhancement: wontfix)

Opened 17 years ago

Last modified 15 years ago

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:2 Changed 16 years ago by lmagnin

patch

552c552 < elseif ($this->getOpt('active_pre') && preg_match('/[ ]{1}(.*)$/',$line,$cap)) ---

elseif ($this->getOpt('active_pre') && preg_match('/[ ]{1}(.+)$/',$line,$cap))

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.

Sites map