You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm probably missing something ridiculously obvious, so I'm posting here for help. I'm trying to get multi-line struct field comments to work without adding a new line character to display exactly how it is in my code. So this code
typeAccountstruct {
// This comment is a long string that'll span multiple lines to properly describe this// field. Namestring
}
This generates the following
This comment is a long string that'll span multiple lines to properly describe this\nfield.
Is there a way to strip out the \n, so it wraps around properly when I import it to my documentation site.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi everyone,
I'm probably missing something ridiculously obvious, so I'm posting here for help. I'm trying to get multi-line struct field comments to work without adding a new line character to display exactly how it is in my code. So this code
This generates the following
Is there a way to strip out the
\n
, so it wraps around properly when I import it to my documentation site.Beta Was this translation helpful? Give feedback.
All reactions