[QUESTION] Why are description strings joined with double newlines? #385
Replies: 3 comments
-
Hi, @dfkki123508 thanks for your feedback. I think the Line 41 in f04c9b7 This line ensures that users can write long descriptions in multiple lines. Line 46 in f04c9b7 This line ensures that different sections (split by I admit that we didn't cover your use case. I'll try to find a better way to handle this. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick answer! I think a workaround is probably to use html tags, but have to try it out :) |
Beta Was this translation helpful? Give feedback.
-
HTML should work. BTW, for this kind of Markdown flavor table, I guess I can only provide a So, maybe using the HTML code directly will be better for your use case? |
Beta Was this translation helpful? Give feedback.
-
For me it causes problems when trying to render markdown, e.g.
results in the spec as:
"description": "| One | Two | Three | |-----|-----|-------| | a | b | c |\n\n| One | Two | Three |\n\n|-----|-----|-------|\n\n| a | b | c |"
I did not find a possiblity to render single newlines. Can you help me?
PS: I am referring to this line:
spectree/spectree/utils.py
Line 46 in f04c9b7
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions