mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-27 15:04:02 +00:00
gdocs.js should strip trailing whitespace in imported docs
This commit is contained in:
parent
fe743e31f8
commit
08e3b1edbb
1 changed files with 1 additions and 0 deletions
1
gdocs.js
1
gdocs.js
|
|
@ -189,6 +189,7 @@ function reflow(text, margin) {
|
||||||
var col = 0;
|
var col = 0;
|
||||||
var reflowLine = '';
|
var reflowLine = '';
|
||||||
function flush(){
|
function flush(){
|
||||||
|
reflowLine = reflowLine.replace(/\s*$/, '');
|
||||||
lines.push(reflowLine);
|
lines.push(reflowLine);
|
||||||
reflowLine = '';
|
reflowLine = '';
|
||||||
col = 0;
|
col = 0;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue