lambdamusic / Ontospy

Python library and command-line interface for inspecting and visualizing RDF models aka ontologies.
http://lambdamusic.github.io/Ontospy/
MIT License
219 stars 52 forks source link

New lines in class description #98

Closed RichDijk closed 2 years ago

RichDijk commented 3 years ago

I have added multiple annotation values to bestDesiption including new line chars. In the template I have added a filter |linebreaks to the description section.

This does not have the expected result. Do I need to do more?

Regards, Richard

lambdamusic commented 2 years ago

Can you provide a reproducible example?

NOTE bestDescription is simply a utility method for getting the first ('best') available description string for an RDF entity. E.g. RDFS.comment or DCTERMS.description.

lambdamusic commented 2 years ago

PS newlines are now rendered in HTML docs - see https://github.com/lambdamusic/Ontospy/releases/tag/v1.9.9