Menu

Trac Commit Log


Commit Date  
[r9072] by cboos

Another small bugfix, `OutlineFormatter.handle_code_block` must take the same number of arguments as the same method in `Formatter`.

2010-01-24 20:25:52 Tree
[r9071] by cboos

WikiFormatting: another follow-up to r9069, this time to allow the `|-` separator to be aligned with the `#!td` and `#!th` blocks, in case the latter are indented.

2010-01-24 20:17:58 Tree
[r9070] by cboos

Hotfix for r9069, as `WikiProcessor._format_row` didn't work on Unix (\n vs. \r\n in Genshi output issue).

2010-01-24 20:15:50 Tree
[r9069] by cboos

WikiFormatting: improve row separators for complex tables
- add support for WikiMedia style row separators (`|-`)
- add a `#!tr` WikiProcessor

Either way can be used to separate `#!td` cells in multiple rows in a more explicit way than by using an isolated `||`.

For the `|-` separator, there can be more than one '-', so that rows can be better visualised:

Example:
{{{
{{{
#!th
Heading A
}}}
{{{
#!th
Heading B
}}}
|---------
{{{
#!td
Content A
}}}
{{{
#!td
Content B
}}}
}}}

The `#!tr` processor can be used when nesting is preferred, or when one wants to specify attributes to the row element (typically style="background: ...").

Note that since anything not looking like a 'key=value' pair is also allowed but ignored after a processor name, one can also take benefit of this to visually enhance the structure of the markup:
{{{

{{{!tr ==============================================
{{{#!th

Header A

}}}
{{{#!th -----------------------------------------

Header B

}}}
}}}
{{{!tr ==============================================
{{{#!td

Content A

}}}
{{{#!td -----------------------------------------

Content B

}}}
}}}
}}}

2010-01-24 19:33:30 Tree
[r9068] by cboos

WikiFormatting: in code blocks, only remove the white-space prefix if it is common to all lines in the block.

2010-01-24 19:31:58 Tree
[r9067] by cboos

Fix unit-tests failure for ''Test Table with th and td wiki processors'' (r9064) when run during the whole test suite. Note that when running the trac/tests/allwiki.py test suite, there was no error with that test.

2010-01-24 19:22:27 Tree
[r9066] by cboos

WikiFormatting: accept more compact WikiProcessor declarations, on the same line as `{{{`, the start of a code block.

For example, instead of:
{{{
{{{
#!div class=important

'''Warning''': you must follow those guidelines
- ...
}}}
}}}
it is now possible to write:
{{{
{{{#!div class=important

'''Warning''': you must follow those guidelines
- ...
}}}
}}}

2010-01-24 19:09:11 Tree
[r9065] by cboos

WikiProcessors: allow leading spaces in the first line `#!processor`.

That amount of space is removed from the beginning of each line in the corresponding block, if possible.

e.g.
{{{
- This is some XML:
{{{
#!xml
<book>
<chapter><title>At the beginning...</title>
There was some leading space.
</chapter>
</book>
}}}
}}}

2010-01-24 19:00:03 Tree
[r9064] by cboos

WikiFormatting: add new built-in processors `#!td` and `#!th` for creating cells with multiline content and specifying additional attributes, like colspan or rowspan.

A table cell specified that way belong to the previous row, so for terminating a row consisting of only "block" cells, a single `||` on a line is needed.

Example:
{{{

{{{
#!th
- some header
}}}
{{{
#!th
- another header
- with more rows
}}}
||
{{{
#!td rowspan=2

Arbitrarily big content (even an embedded table of course):
|| A || B ||
}}}
{{{
#!td

Second cell, first row
}}}
||
{{{
#!td

Second cell, second row...
}}}

}}}

2010-01-24 18:38:45 Tree
[r9063] by cboos

WikiFormatting: follow-up to r9005, provide a way to specify center alignment for table cells.

When there are at least '''2''' spaces around the text in a cell, the alignment will be set to "center":
{{{
|| centered ||
|| cells ||
|| this is default ||
||and same for this||
|| again center ||
}}}

2010-01-24 18:28:42 Tree
Older >
MongoDB Logo MongoDB