[Pmwiki-users] Re: Need help with markup

Patrick R. Michaud pmichaud at sci.tamucc.edu
Tue Oct 15 13:52:40 CDT 2002


On Tue, 15 Oct 2002, Jonathan Scott Duff wrote:

> This is the same thing ...
> 
> 	[[table]] Where does this go?  Cell 1?
> 	[[cell]] Cell 2?
> 	[[nextrow]] Row 2 column 1
> 	[[cell]] Row 2 column 2
> 	[[tableend]]
> 	
> But then how does this parse?
> 
> 	[[table]]
> 	[[cell]] Cell 1?
> 	[[cell]] Cell 2?
> 	[[nextrow]]
> 	[[cell]] Row 2 Cell 1?
> 	[[cell]] Row 2 Cell 2?
> 	[[tableend]]

We're back to my original point--the separate nextrow tag makes it 
confusing because we're not sure what happens with text between the
nextrow tag and the cell tag.  (The same problem occurs in HTML, BTW--
what happens to text between a <tr> tag and a <td> tag?)

But if you look at my original formulation:

	[[table]]
	[[cell]] Cell 1
	[[cell]] Cell 2
	[[cell nextrow]] Row 2 Cell 1
	[[cell]] Row 2 Cell 2
	[[tableend]]

There's almost *no* chance for misinterpretation about what is
happening.  Jessica's original point was that the separate [[nextrow]]
tag was more self-explanatory, but I don't see how it's any more or
less "explanatory" than what I have above (maybe I'm just being dense 
here).

----

Anticipating the question about "What happens with text between
the [[table]] tag and the first [[cell]] tag?":  I'll propose that any
text before the first [[cell]] tag is actually outside of the table.

Anticipating the question about "What happens with a [[cell]] tag that
doesn't have a [[table]] tag in front of it?":  I'll propose that
[[cell]] implies [[table]] if one hasn't been explicitly specified.
(I.e., the [[table]] is simply syntactic sugar, or else an opportunity 
for the user to specify table options such as border, width, cellspacing,
cellpadding, etc.)

Obviously a [[tableend]] that doesn't have a [[cell]] somewhere before
it is a null operation.  And pages have an implied [[tableend]] at
the end of the page if [[tableend]] is omitted.

Pm





More information about the pmwiki-users mailing list