1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
Description: bugfix 767761 for Jessie
.
sisu (5.7.1-2) unstable; urgency=medium
.
* [e206fef] v5 v6: ao, composite documents, on --verbose report loading of
.sst files, fix
* without fix sisu reports loading of .ssm & .ssi files but not .sst
(sub-documents are imported correctly and resulting document outputs are
correct and unaffected, but unless aware of this bug it would seem
otherwise until the correct operation of sisu was manually verified e.g.
by examining documents produced); (issue somewhat mitigated by not being
the most common sisu operation)
* sisu is in development freeze, this fix is provided for Debian Jessie
(Closes: #767761)
Author: Ralph Amissah <ralph@amissah.com>
Bug-Debian: https://bugs.debian.org/767761
Origin: upstream, http://git.sisudoc.org/gitweb/?p=code/sisu.git;a=commitdiff;h=e206fef8ba35e5061c7da11b1a294d9897de22e9
--- sisu-5.7.1.orig/lib/sisu/v5/ao_composite.rb
+++ sisu-5.7.1/lib/sisu/v5/ao_composite.rb
@@ -133,7 +133,7 @@ module SiSU_Assemble
begin
if FileTest.file?(loadfilename)
insert_array=IO.readlines(loadfilename,'')
- if loadfilename =~/\S+?\.ss[im]$/
+ if loadfilename =~/\S+?\.ss[itm]$/
if (@opt.act[:verbose][:set]==:on \
|| @opt.act[:verbose_plus][:set]==:on \
|| @opt.act[:maintenance][:set]==:on)
@@ -143,12 +143,14 @@ module SiSU_Assemble
loadfilename,
).txt_grey
end
- insert_array.each do |para|
- tuned_file << insert?(para)
- end
- elsif loadfilename =~/\S+?\.sst$/
- insert_array.each do |para|
- tuned_file << para
+ if loadfilename =~/\S+?\.ss[im]$/
+ insert_array.each do |para|
+ tuned_file << insert?(para)
+ end
+ elsif loadfilename =~/\S+?\.sst$/
+ insert_array.each do |para|
+ tuned_file << para
+ end
end
end
end
--- sisu-5.7.1.orig/lib/sisu/v6/ao_composite.rb
+++ sisu-5.7.1/lib/sisu/v6/ao_composite.rb
@@ -133,7 +133,7 @@ module SiSU_Assemble
begin
if FileTest.file?(loadfilename)
insert_array=IO.readlines(loadfilename,'')
- if loadfilename =~/\S+?\.ss[im]$/
+ if loadfilename =~/\S+?\.ss[itm]$/
if (@opt.act[:verbose][:set]==:on \
|| @opt.act[:verbose_plus][:set]==:on \
|| @opt.act[:maintenance][:set]==:on)
@@ -143,12 +143,14 @@ module SiSU_Assemble
loadfilename,
).txt_grey
end
- insert_array.each do |para|
- tuned_file << insert?(para)
- end
- elsif loadfilename =~/\S+?\.sst$/
- insert_array.each do |para|
- tuned_file << para
+ if loadfilename =~/\S+?\.ss[im]$/
+ insert_array.each do |para|
+ tuned_file << insert?(para)
+ end
+ elsif loadfilename =~/\S+?\.sst$/
+ insert_array.each do |para|
+ tuned_file << para
+ end
end
end
end
|