Keep line breaks in DokuWiki

Jan 12, 2011 by

I have created the very simple text formatter plugin for DokuWiki mainly to solve the problem of pasting some text with line breaks. DokuWiki by default ignores these line breaks and this was a problem for me. Without knowing any better I quickly put together the wpre plugin which simply wraps whatever you want with <pre> tag. I later learned that there is a better plugin for this. It’s called linebreak. It works fine for me, even with the latest DokuWiki release, but it seems that the author suggest to use xbr plugin instead.

read more

Related Posts

Tags

Share This

DokuWiki upgrade error

Nov 10, 2010 by

After recent upgrade to my DokuWiki installation (I jumped from Mulled Wine straight to the latest release – Anteater)

I was getting this weird error:

call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘Doku_Renderer_metadata::section_edit’ was given

the solution was to disable all the plugins and re-enable them again. Not sure why it worked, but it worked and the error is gone now! So if you experience the same error – try this. If it doesn’t help, another good idea could be gradually re-enable plugins and see which one is the offender. Good Luck!

read more

Related Posts

Tags

Share This

Word Wrapped Preformatted text in DokuWiki

Feb 12, 2010 by

I am using DokuWiki quite extensively lately to keep documentation of various things. Using wiki is quite useful in general and some people opt for using local wiki such as WikiPad but for my needs, I opted for online wiki since I often times need to access it from various places. Maybe in the future I will post why I chose DokuWiki and some of my (objective) thoughts about comparison to other wikis and some of my likes and hates about DokuWiki (although there are much more “likes” than “hates” :) ). This post would be short and not about it.

Several times I just wanted to put a plain (preformatted) text into the wiki for whatever reasons but I ran into a problem that DokuWiki isn’t really ready to support this. One option is to use <code> but then the lines are not word wrapped and for text it looks just weird. So at those various occasions I tried to search for a solution with little success until I just took xterm plugin and modified it slightly (mostly the style CSS file) which took me about 5 minutes to do  (and took me about 30 minutes to write this post, and the corresponding DokuWiki Plugin page and test the browsers) and now we have a wpre plugin for DokuWiki for word wrapped preformatted text which seem to work on all recent major browsers. You can dowload it from here wpre plugin for DokuWiki (the page on DokuWiki references this file)

Supported browsers:

(I just tested whatever I had installed on my machine and all are pretty recent. I suspect many much older versions should be supported as well)

  • FireFox 3.5.7
  • Safari 4.0.4 for Windows
  • Opera 10.10
  • Internet Explorer 8.0
  • Chrome 4.0
read more