backport from laiz-template v1.2.2.
bugfix of parsing quote character and line break.