Description

Describe the bug...
When using the monospace markup (backtick surrounding text) for a string of text that is longer than one screen/frame width, the text does not word wrap but instead runs off the edge of the screen. This seems to mimic the behavior of the inline code markup (3 curly braces surrounding text on the same line; eg: { {{{code }}}}). (I don't know why the code block markup isn't parsing correctly here.)

Steps to reproduce

  1. Use the monospace markup (backtick at the beginning and end of a string) around a sentence long enough that it should need to wrap to the next line to remain on a single screen width. When you preview or save the page it will run off the right side of the screen.

Example

`The quick brown fox jumps over the lazy dog.  Peter Piper picked a peck of pickled peppers.  Mary had a little lamb.  It's fleece was white as snow.`

The quick brown fox jumps over the lazy dog.  Peter Piper picked a peck of pickled peppers.  Mary had a little lamb.  It's fleece was white as snow.

Component selection

Details

MoinMoin Version

1.8.5

OS and Version

Windows XP 2002 SP2

Python Version

Server Setup

Server Details

Language you are using the wiki in (set in the browser/UserPreferences)

English

Workaround

If you put backticks throughout the string it will break between backtick pairs. Example:

`The quick brown fox` `jumps over the` `lazy dog.`  `Peter Piper` `picked a peck of` `pickled peppers.`  `Mary had a` `little lamb.`  `It's fleece` `was white` `as snow.`

The quick brown fox jumps over the lazy dog. Peter Piper picked a peck of pickled peppers. Mary had a little lamb. It's fleece was white as snow.

Discussion

I just noticed that markup within the monospace pair (at least true for hyperlink markup) is ignored. I wonder if somehow the monospace markup is just calling the code block mechanism instead of it's own since it is really behaving like a code block instead of just like regular font formatting as would be expected.

Plan


CategoryMoinMoinBug

MoinMoin: MoinMoinBugs/wordwrap monospace (last edited 2011-06-16 18:22:39 by SSmith)