mirror of
https://github.com/janet-lang/janet
synced 2025-11-25 03:34:49 +00:00
Ensure no carriage returns end up in doc strings.
This commit is contained in:
@@ -294,7 +294,7 @@ static int stringchar(JanetParser *p, JanetParseState *state, uint8_t c) {
|
||||
return stringend(p, state);
|
||||
}
|
||||
/* normal char */
|
||||
if (c != '\n')
|
||||
if (c != '\n' && c != '\r')
|
||||
push_buf(p, c);
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user