Attach an image and checkmark the link checkbox. You get:
* file.gif: <br />
- The image tag is missing
- The bullet is preceeded by a tab
It should produce:
* file.gif: <br />
<img src="%ATTACHURLPATH%/file.gif" alt="file.gif" width="17" height="15" />
I am concerned about the quality of TWiki, every day I work on TWiki I discover and file a few bugs.
Was this a typo? Did you check the box to create the link? Because I get the image tag when I do.
As for the tab vs spaces, IIR Dakar treats leading tabs as spaces. See line 273 of
Sorry, I don't recall where its documented, but try TWiki:Codev/StopSpaceTabMunging
. Tryediting the topic.
Not a typo. I attached an image (with checkbox) to Sandbox.TestTopic21
- ... but when I go into 'manage' and set the checkbox, the image apears .... -- AJA
This is because the attached image format is defined in TWikiPreferences, and is broken over two lines using the indent feature for extending set values. The indent feature was reimplemented as described in the cairo documentation, but unfortunately this documentation was inconsistent with the code. The indent does not start with a multiple of three spaces, so the value gets the first line only.
The tab is caused by a hack inherited from Cairo, that replaces three spaces with tabs in this special case. I hadn't noticed it because Dakar treates tabs and 3 spaces as equivalent. I removed it just to be consistent.
If you are concerned about the quality of TWiki, how about contributing some fixes, or some testcases, or even reviewing the documentation?
I am doing the best I can. Just for the records, I am already spending several hours a day on open source twiki. Do you prefer that I hunt for more bugs before the release, or fix bugs and live with bugs in the release?
BTW, minor issue, but the tabs are still tabs.
The tab has to remain a tab. The reason is that the string is defined in a TWiki variable, and all spaces are removed off the front of a TWiki variable definition when it is parsed.