@@ -505,7 +505,7 @@ def test_slide_notes(self):
505
505
handler = PptxHandler ()
506
506
template , stringset = handler .parse (content )
507
507
508
- self .assertEqual (len (stringset ), 1 )
508
+ self .assertEqual (len (stringset ), 2 )
509
509
510
510
openstring = stringset [0 ]
511
511
self .assertEqual (openstring .order , 0 )
@@ -514,8 +514,17 @@ def test_slide_notes(self):
514
514
'' .join ([
515
515
u'This<tx> slide has only notes and </tx>' ,
516
516
u'<tx href="http://www.transifex.com">hyperlinks</tx>'
517
- u'<tx>.</tx>' ,
518
- u'<tx>Another </tx>' ,
517
+ u'.'
518
+ ])
519
+ )
520
+ self .assertEqual (openstring .tags , ['notes' ])
521
+
522
+ openstring = stringset [1 ]
523
+ self .assertEqual (openstring .order , 1 )
524
+ self .assertEqual (
525
+ openstring .string ,
526
+ '' .join ([
527
+ u'Another ' ,
519
528
u'<tx>sentence</tx> below'
520
529
])
521
530
)
@@ -524,9 +533,10 @@ def test_slide_notes(self):
524
533
translated_strings = [
525
534
[
526
535
u'Αυτό<tx> το slide έχει μόνο notes και </tx>' ,
527
- u'<tx href="http://el.transifex.com">συνδέσμους</tx>'
528
- u'<tx>.</tx>' ,
529
- u'<tx>Άλλη μια </tx>' ,
536
+ u'<tx href="http://el.transifex.com">συνδέσμους</tx>.'
537
+ ],
538
+ [
539
+ u'Άλλη μια ' ,
530
540
u'<tx>πρόταση</tx> από κάτω'
531
541
]
532
542
]
@@ -542,17 +552,24 @@ def test_slide_notes(self):
542
552
content = handler .compile (template , translated_stringset )
543
553
template , stringset = handler .parse (content )
544
554
545
- self .assertEqual (len (stringset ), 1 )
555
+ self .assertEqual (len (stringset ), 2 )
546
556
547
557
openstring = stringset [0 ]
548
558
self .assertEqual (openstring .order , 0 )
549
559
self .assertEqual (
550
560
openstring .string ,
551
561
'' .join ([
552
562
u'Αυτό<tx> το slide έχει μόνο notes και </tx>' ,
553
- u'<tx href="http://el.transifex.com">συνδέσμους</tx>'
554
- u'<tx>.</tx>' ,
555
- u'<tx>Άλλη μια </tx>' ,
563
+ u'<tx href="http://el.transifex.com">συνδέσμους</tx>.'
564
+ ])
565
+ )
566
+
567
+ openstring = stringset [1 ]
568
+ self .assertEqual (openstring .order , 1 )
569
+ self .assertEqual (
570
+ openstring .string ,
571
+ '' .join ([
572
+ u'Άλλη μια ' ,
556
573
u'<tx>πρόταση</tx> από κάτω'
557
574
])
558
575
)
0 commit comments