OpenCDSS / cdss-lib-common-java

Colorado's Decision Support Systems (CDSS) common library (Java)
GNU General Public License v3.0
0 stars 1 forks source link

Data Dictionary - add option or default to better handle newlines #203

Open smalers opened 1 year ago

smalers commented 1 year ago

The data dictionary code used by the CreateDataStoreDataDictionary command works well except that a recent use case does not handle line breaks well. The line breaks in comments are passed to the HTML and the browser swallows. This is particularly an issue when comments are formatted with tables of possible values. The default with an option should perhaps be to replace newlines with <br> HTML so that the output more closely matches the original. This will require that authors of comments only use line breaks where they actually want paragraph breaks.

Double newlines should definitely be treated as a new paragraph.