File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 99import { XmlHelper } from './xml-helper' ;
1010import HasShapes from '../classes/has-shapes' ;
1111import { TableInfo } from '../types/table-types' ;
12+ import { vd } from './general-helper' ;
1213
1314export const nsMain =
1415 'http://schemas.openxmlformats.org/presentationml/2006/main' ;
@@ -210,6 +211,12 @@ export class XmlSlideHelper {
210211 for ( const textElement of Array . from ( textElements ) ) {
211212 texts . push ( textElement . textContent || '' ) ;
212213 }
214+
215+ // Check if the next sibling after rPr is a line break
216+ const nextSibling = run . nextSibling ;
217+ if ( nextSibling && nextSibling . nodeName === 'a:br' ) {
218+ texts . push ( `\n` )
219+ }
213220 }
214221
215222 // Only add paragraphs that have text content
@@ -283,6 +290,7 @@ export class XmlSlideHelper {
283290 'numberingType' ,
284291 'bullet' ,
285292 'startAt' ,
293+ 'breaks' ,
286294 ] as const ;
287295
288296 for ( const key of propertyKeys ) {
Original file line number Diff line number Diff line change @@ -43,8 +43,6 @@ export class XmlTemplateHelper {
4343 // Should be either:
4444 // a.) remove unused slides on generation
4545 // b.) use slides list from 'p:sldIdLst' in `ppt/presentation.xml`
46- vd ( this . relType )
47- vd ( this . path )
4846
4947 const creationIds : SlideInfo [ ] = [ ] ;
5048 for ( const slideRel of relationships ) {
You can’t perform that action at this time.
0 commit comments