Python rendering in commit interface
Summary
The formatting of some Python code worked in the wrong way on the Gitlab commit interface, when double quotes around a string and continuing, without any space to an empty string, it formats all the code beneath as a String, instead of how Python handles it.
Steps to reproduce
- Commit a Python file with this type of input : "string"""
- Watch the output in the files modified
Example Project
https://gitlab.com/christophe.dsneto/python-double-quote
What is the current bug behavior?
Gitlab commit interface interprets a special case of two strings next to each other as a comment
What is the expected correct behavior?
Python interprets the example above (even if it's the wrong way to do it), as two strings, but Gitlab commit interface interprets everything beneath as a comment. It should interpret it the same way Python does.
Relevant logs and/or screenshots
Just watch this commit -> christophe.dsneto/python-double-quote@663eec81
Output of checks
This bug happens also on GitLab.com
Edited by 🤖 GitLab Bot 🤖