Answer the question
In order to leave comments, you need to log in
Why does the getContent of the Google_Service_Docs_TextRun class of the Google API PHP add an extra space in 99% of the lines?
The getContent method of the Google_Service_Docs_TextRun class returns a space at the end of most lines that do not exist in the document. Well, he would return it everywhere, the bastard, so it does not return for some lines.
In the document, of course, there are no spaces at the end of lines.
Of course, you can do rtrim. But such crutches infuriate me. And there is no guarantee that some necessary spaces will not be cut. There should not be a space at the end of the line on one side. But on the other hand, it may lead to no one knows what to lead to in any situation.
In general, this Google API is a rare misery. Inserting, replacing, deleting an element is a huge problem.
Has anyone come across?
Some lines are broken. But this is partly understandable, they were edited. And it is solved by deleting the line and inserting without formatting.
In Google Docs, the cursor cannot be moved to the right of a line. There is no gap there. But with the shift pressed, you can make a selection and Google shows the selected space. If it is removed, then the transition to a new line is removed.
But any line has such a chip. And the getContent method does not add a space to some lines.
'Rendering services in the field of information technology: '
'development of applications, sites and information systems'
'; '
'technical '
'support for '
'projects'
'; '
'accommodation and support of the Customer's computing resources;'
' '
'Rental of software and computing resources of the Contractor;'
' '
'rent of virtual servers or space on the Contractor's equipment '
'('
'hosting)'
'; '
'rent and sale of software;'
' '
server administration and support; '
'domain registration; '
'other related services.'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question