Commit Graph

21 Commits

Author SHA1 Message Date
felipe
0453f28951 add keepLines and keepNext support for paragraph formatting
This commit adds it to the three places where paragraph formatting can
be applied right now (directly on the paragraph, paragraph styles, and
bullets/numbering styles). I'm separately adding an entry to the wiki
regarding what these methods do (widow/orphan control)
2017-04-14 21:13:11 +02:00
felipe
b1c8b2beb8 add xml:space="preserve" to text runs
In MS Word 2015 (and possibly others), leading and trailing spaces are
ignored in text runs. This means that calling TextRun with
leading/trailing space would result in a document that didn't include
those spaces. The fix here (per http://officeopenxml.com/WPtext.php)
is to include an extra attribute on the "w:t" element that forces word
to recognize those spaces.
2017-04-14 11:08:19 +02:00
felipe
9d7573ed9c fix unused imports linter warnings 2017-03-10 16:09:21 +01:00
felipe
35ddda444a rename paragraph#createRun to paragraph#createTextRun 2017-03-10 14:44:25 +01:00
felipe
8d11ec3422 add paragraph.createRun method 2017-03-10 14:36:16 +01:00
felipe
7ff838357a removed empty Attributes from ParagraphProperties
I checked the spec, and "w:pPr" does not take any attributes. I also
converted the paragraph tests to use the deep.equal style to get rid
of some more jsonify!
2017-03-10 10:32:40 +01:00
Dolan
7022b39d2e linting 2017-03-09 22:56:08 +00:00
Dolan
5fac776dca listing stuff 2017-03-09 22:31:55 +00:00
felipe
3b18b8267a fix paragraphTests.ts linter warnings 2017-03-09 12:25:59 +01:00
felipe
20ec9b679e added Spacing for paragraphs and ParagraphStyle 2017-03-09 12:16:49 +01:00
felipe
18ca93e50a add paragraph#style method to quickly set the style 2017-03-09 11:11:07 +01:00
felipe
2684f16579 move indent.ts over to paragraph and add a #indent method 2017-03-09 09:59:48 +01:00
felipe
0e9532d835 added #setNumbering method to paragraph 2017-03-08 18:23:00 +01:00
felipe
52c4e3cabd allow NumberProperties to specify custom id/level
This change allows callers to create custom numbering styles and
attach them to paragraphs
2017-03-08 16:20:44 +01:00
Dolan
9c3023019f huge clean up of project. Now uses @types, and removed committed typings.
Formatted the imports too
2017-03-07 22:15:53 +00:00
Dolan Miu
078196c6d6 wrote lots of tests 2016-07-18 19:17:19 +01:00
Dolan Miu
81e7d01556 unordered list tests 2016-07-17 16:28:54 +01:00
Dolan Miu
f4bc0613a6 page break tests 2016-07-17 16:18:20 +01:00
Dolan Miu
016cffd66c added new tests for xml components 2016-07-17 16:03:31 +01:00
Dolan Miu
f8cf0431c0 wrote tab stop tests 2016-07-15 18:50:54 +01:00
Dolan Miu
8ecb8ed8f2 rearranged test locations 2016-07-01 22:09:55 +01:00