Skip to content

mediawiki writer produces broken tables when cell contains a hyphen #2604

Closed
stm2 opened this Issue · 0 comments

1 participant

@stm2

Processing this input:

{|
| -
|}

using pandoc -f mediawiki -t mediawiki produces

{|
|-
|}

which is not the same. This also affects cells containing a plus sign and maybe others. As a solution, it probably wouldn't hurt to generally insert a space before cell content.

@jgm jgm added a commit that closed this issue
@jgm MediaWiki writer: fix spacing issues.
+ Start cell on new line unless it's a single Para or Plain.
+ For single Para or Plain, insert a space after the `|` to
  avoid problems when the text begins with a character like
  `-`.

Closes #2604, closes #2606.
a68e072
@jgm jgm closed this in a68e072
@c-forster c-forster pushed a commit to c-forster/pandoc that referenced this issue
@jgm MediaWiki writer: fix spacing issues.
+ Start cell on new line unless it's a single Para or Plain.
+ For single Para or Plain, insert a space after the `|` to
  avoid problems when the text begins with a character like
  `-`.

Closes #2604, closes #2606.
58f9fe8
@c-forster c-forster pushed a commit to c-forster/pandoc that referenced this issue
@jgm MediaWiki writer: fix spacing issues.
+ Start cell on new line unless it's a single Para or Plain.
+ For single Para or Plain, insert a space after the `|` to
  avoid problems when the text begins with a character like
  `-`.

Closes #2604, closes #2606.
7b42c0d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.