The default is a dotted line, which can't be distinguished when it meets black and white.
In the case of Chinese input method, three (more than three) "-"are input continuously through the keyboard, and a straight line (one-way street) is obtained by pressing Enter. If you don't want to enter a straight line, you just want to enter three-,press the delete key to backspace once, or click the warning symbol in front to cancel the input.
In the case of Chinese input method, hold down shift, input three (more than three) "——" on the keyboard continuously, and press enter to get a straight line (one-way street). As you can see, holding down the shift key to enter "-"has the same effect as entering "-".
In the case of English input method, the situation is different. Enter three (more than three) "-"continuously with the keyboard, and press enter to get a straight line (one-way street). This is consistent with Chinese input method.