fix 3a4c8e2

unfortunately the previouse commit for #1550 is incorrect, which still concatenate the
keywords, but like this:

      method='"end\nb"' (201)

this pr fix the previous problem, I'm testing whether this modification will affect the lineno
of the second file, and I'll update the status after test compete. sorry for the previous untest
code.