@rowan – I deleted most the text & tried wiki markup & it worked, so I knew
it was somewhere in the text. Reloading the page and doing a binary search
by deleting parts of the text got me to the offending line pretty quickly.
When I realized that simply pasting that single line would crash the page,
I examined it in the clipboard using Apple's sample project
clipboardviewer<http://developer.apple.com/library/mac/#samplecode/ClipboardViewer/Introduction/Intro.html#//apple_ref/doc/uid/DTS40008825>and
found non-breaking spaces (C2 A0 hex) instead of normal spaces (20
hex). Mac users can recreate this problem by (1) making a new page and
entering {code}abc{code} into the Wiki Markup editor, flipping to Rich Text
editing, and adding more than 20 spaces in front of "abc" while holding
down the Option key. Don't add many more than 20, though. As you add more
than 20 non-breaking spaces, the flip between Rich Text & Wiki Markup gets
slower & slower in Chrome until (at ~30 spaces for me) it takes long enough
to crash the page. It turns out that it's a known bug in Confluence since
version 3.4 (CONF-20721 <https://jira.atlassian.com/browse/CONF-20721>).
@dave – {code} is the right macro. Actually, {code:xml} would be prettier,
because it would syntax highlight the XML.
@everyone – The lesson: use {code:xml} (or {code:java}, etc.) all you want
on the wiki; however, if you're on a Mac, don't hold down the option key
when inserting spaces in your code blocks… at least not when entering more
than 20 consecutive spaces. :-)
@rowan – just delete the space in front of that one line and re-enter it as
normal spaces and you're page will work again.
Cheers,
-Burke
On Wed, Jan 18, 2012 at 1:52 PM, Dave Thomas <[email protected]> wrote:
> Is there a tag other than 'code' that will auto-format xml?
>
> d
>
>
> On Wed, Jan 18, 2012 at 7:22 AM, Rowan Seymour <[email protected]>wrote:
>
>> Very weird... how did you figure that out?
>>
>>
>> On 18 January 2012 16:53, Burke Mamlin <[email protected]> wrote:
>>
>>> Weird. There's something freaky with the extra whitespace in one line
>>> of XML in the first example (coded panel) under "So How Do I use These
>>> Dimensions With OpenMRS?" (line #18, I believe) that crashes Confluence in
>>> Chrome when switching to wiki markup.
>>>
>>> If you delete the extra white space on the one line that's indented
>>> improperly:
>>>
>>>
>>> <structure:CodeRef>
>>>
>>>
>>> so that it lines up properly (e.g., just delete 16 spaces on the line
>>> before the tag),
>>>
>>>
>>> <structure:CodeRef>
>>>
>>>
>>> Confluence works again. I tried inspecting the source for strange
>>> embedded/hidden characters, but didn't see any. Very strange.
>>>
>>> Anyway, just delete 16 spaces out of the 18th line of the first "So How
>>> Do I Use These Dimensions With OpenMRS?" example and you're good to go.
>>>
>>> -Burke
>>>
>>> On Wed, Jan 18, 2012 at 9:15 AM, Rowan Seymour <[email protected]> wrote:
>>>
>>>> For example:
>>>> https://wiki.openmrs.org/pages/editpage.action?pageId=28936432
>>>>
>>>> When I click on the "Wiki markup" tab while using Chrome, the page
>>>> freezes
>>>> When I try to edit the page in Firefox, I don't see any content in the
>>>> editor
>>>> Works fine in Safari, and other wiki pages are fine
>>>>
>>>> Is it just me?
>>>>
>>>> --
>>>>
>>>> *Dr Rowan Seymour**
>>>> Partners In Health, Rwanda*
>>>> Tel: +250783835665
>>>>
>>>> ------------------------------
>>>> Click here to
>>>> unsubscribe<[email protected]?body=SIGNOFF%20openmrs-devel-l>from
>>>> OpenMRS Developers' mailing list
>>>
>>>
>>> ------------------------------
>>> Click here to
>>> unsubscribe<[email protected]?body=SIGNOFF%20openmrs-devel-l>from
>>> OpenMRS Developers' mailing list
>>
>>
>>
>>
>> --
>> *Rowan Seymour*
>> tel: +250 783835665
>> http://twitter.com/rowanseymour
>>
>>
>> ------------------------------
>> Click here to
>> unsubscribe<[email protected]?body=SIGNOFF%20openmrs-devel-l>from
>> OpenMRS Developers' mailing list
>>
>
> ------------------------------
> Click here to
> unsubscribe<[email protected]?body=SIGNOFF%20openmrs-devel-l>from
> OpenMRS Developers' mailing list
>
_________________________________________
To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to
[email protected] with "SIGNOFF openmrs-devel-l" in the body (not
the subject) of your e-mail.
[mailto:[email protected]?body=SIGNOFF%20openmrs-devel-l]