multi-line notes not showing first line when folded
Bug #1278758 reported by
Roger Jolly
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
webtrees |
Fix Released
|
Low
|
fisharebest |
Bug Description
Before version 1.5.2 a multi-line note would show its first line as a kind of title when folded. In version 1.5.2 this is no longer the case and a folded note will show no information about its contents.
webtrees version: 1.5.2
Tested with:
Safari 7.0.1 / MacOSX Mavericks
Firefox 27 / MacOSX Mavericks
To post a comment you must log in.
In 1.5.2, we allow more formatting options for notes. In particular, notes can be styled using "Markdown".
This presents problems in identifying the "first line".
It is possible to specify markup (markdown!) that gives, for example, something like this:
<a href="www. example. com"> This is a link
to the example site</a>
Now, if we just show the first line, it has the open tag, but not the close tag. We can't just show this or it will break the layout.
Couldn't we just strip out all tags on the first line? We could, but this has other problems. For example, the open/close would need a different "first-line" on each view, and these may not even contain the same text.
Couldn't we just show the first line when it doesn't contain markup? We could - but this would lead to inconsistent and confusing behaviour.
So, the new behaviour is actually working as designed. I'm open to suggestions here, but I already looked at the problem, and didn't see a solution.