Menu

Trac Commit Log


Commit Date  
[r9075] by cboos

WikiFormatting (#4235): only remove leading space from citation quotes when that space is consistently present.

The support for "reply to" style (as in ticket comment) is stronger, as cited normal quotes and definition lists which are depending on leading space are respected.

2010-01-24 21:14:33 Tree
[r9074] by cboos

WikiFormatting: respect wiki markup after '> ...' quoting (citations).

Instead of using a regexp and proceeding line by line, we first gather all the quoted lines and parse them recursively.

Fixes #4235.

2010-01-24 21:13:56 Tree
[r9073] by cboos

WikiFormatting: avoid starting extra list item when we simply continue an existing one.

e.g.
{{{
- this is the toplevel list item
- this is a sub item
Here we simply continue the toplevel list item
(dedent but still at the same level as the initial item)
}}}

Note however that:
{{{
- this is the toplevel list item
- this is a sub item
Here we continue the sub item, as we're directly below its start bullet.
}}}

2010-01-24 21:13:21 Tree
[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
Older >
MongoDB Logo MongoDB