cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 27165] - Chaperon wiki syntax: italic inside bullet point closes bullet point
Date Tue, 24 Feb 2004 12:44:50 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27165>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27165

Chaperon wiki syntax: italic inside bullet point closes bullet point





------- Additional Comments From bdelacretaz@codeconsult.ch  2004-02-24 12:44 -------
I've done some more tests but cannot find the exact cause.

Looking at the ast view (output of the parser), with this input

  Line with some __bold__in it 

I get 

<textsequence line="1" column="1">
  <textblock line="1" column="1">
    <text line="1" column="1">Line with some </text>
  </textblock>
  <textblock line="1" column="16">
    <strongblock line="1" column="16">
      <strongitem line="1" column="16">__</strongitem>
      <text line="1" column="18">bold</text>
      <strongitem line="1"column="22">__</strongitem>
    </strongblock>
  </textblock>
  <textblock line="1" column="24">
    <text line="1" column="24">in it</text>
  </textblock>
</textsequence>

Which is correct: several <textblock> in a single <textsequence>.

Then, according to wiki.grm I'd expect this input
  * List item with some __bold__in it

To generate the same <textsequence> inside a <bulletedlistitem>, but it is not
the case (see attached XML output).

The textsequence production of the grammar looks like it should accept multiple
consecutive textblock:

textsequence 
  : textsequence textblock softbreak
  | textsequence textblock 
  | textblock softbreak  
  | textblock
  | textsequence textblock break
  | textblock break
  ; 

but it doesn't do it for a textsequence inside a bulletedlistitem. If I add

  | textblock textblock

to the above production (to test the effect), the first two textblock of the
parser output are indeed combined inside the bulletedlistitem.

So either I'm missing something about the grammar or there is a parser problem.

Mime
View raw message