Here is what I'm trying to do, but the text remain printed in one line. What is wrong?
from grass_session import Session from grass.script import run_command with Session(gisdb="path to mygisdb", location="myL72", create_opts="EPSG:31370") as sess: cptxt = "- first line \n" cptxt += "- second line \n" run_command('d.text', text=cptxt, color='grey', rotation=0, linespacing=1.8, at=[2, 45], align='ll', size=2.5 )
But the result is
- first line - second line.