Item13959: Bullet rendering of empty bullets is broken
Priority: Normal
Current State: Being Worked On
Released In: n/a
Target Release: patch
Applies To: Engine
Component:
Branches:
In all previous Twikis and Foswikis (1.1.9 and before at least) you could have a bullet list where the user had left a bullet point empty for one reason or the other.
Either to leave some space or as a place holder for stuff to add later
Example
- Bullet line 1
- Bullet line 2
- Bullet line 3 before empty *
- Bullet line 4 after empty
It is OK that the editor removes the bullet char when you hit enter
But when I manually type in my empty bullet between existing bullets and save it it should render an empty bullet just like 1.1.9 did. It should show the bullet char and nothing else.
In Foswiki 2.1 the empty bullet is rendered as an "*" at the end of the previous bullet text
it used to work. Something changed the behaviour. See this in context with the new indent feature. It was probably messed up when that was implemented.
Note again. This bug is not an editor bug. It is the rendering that goes wrong.
I have many topics where people left empty bullets for one reason or the other so it is quite common.
--
KennethLavrsen - 11 Feb 2016
I have what seems to be a fix for the missing rendering. I now have to get a dev setup running so I can run the unit tests to see that it does not break anything.
And I need to add a unit test so this spec gets checked.
--
KennethLavrsen - 15 Feb 2016
Update
It is not correct that 1.1.9 rendered empty bullets right. It works just like 2.1.0. But there must have been a preference in the old editors to save the bullets with a trailing space if it was empty.
I still think an empty bullet should be rendered correctly and not as an asterix on the previous bullet. But I will now lower the bug item to normal.
I am working on fixing this but I have to be careful not to break anything
--
KennethLavrsen - 15 Feb 2016
Update to update
Old space has always been "space space space asterix space" and it works as an empty bullet if you add the extra space. But users will not do that. I need to think carefully here because I do not want to suddenly accept a bullet without the space after the aterix in general.
--
KennethLavrsen - 15 Feb 2016