Skip to content

Commit 52cf9a9

Browse files
authored
Merge pull request #45 from CourseOrchestra/minor_clairfications
Changed some minor frame behaviour
2 parents cf2037c + b135a3c commit 52cf9a9

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

lib/a-od-producer/asciidoctor-od.rb

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ def h_general
461461
@sd["style:table-properties"]["style:rel-width"] = "100%"
462462
end
463463
def h_style_may_break_between_rows
464-
@sd["style:table-properties"]["style:may-break-between-rows"] =
464+
@sd["style:table-properties"]["style:may-break-between-rows"] =
465465
"false" if !!(@snr =~ / tp_o_unbreakable /)
466466
end
467467
def h_style_keep_with_next
@@ -787,9 +787,9 @@ def h_parent_style_name
787787
@sd[:parent_style_name] = $aodp_sn_ef if !!(@snr =~ / cft_example /)
788788
end
789789
def h_style_vertical_pos
790-
@sd["style:graphic-properties"]["style:vertical-pos"] = "top"
791-
@sd["style:graphic-properties"]["style:vertical-rel"] = "baseline"
792-
@sd["style:graphic-properties"]["text:anchor-type"] = "paragraph"
790+
@sd["style:graphic-properties"]["style:vertical-pos"] = "from-top"
791+
@sd["style:graphic-properties"]["style:vertical-rel"] = "paragraph-content"
792+
@sd["style:graphic-properties"]["text:anchor-type"] = "paragraph"
793793
@sd["style:graphic-properties"]["style:flow-with-text"] = "true"
794794
@sd["style:graphic-properties"]["style:wrap"] = "none"
795795
end
@@ -910,7 +910,6 @@ def h_parent_style_name
910910
end
911911
end
912912

913-
914913
class BasicPreambleFirstParagraph < BasicHelper
915914
def h_parent_style_name
916915
@sd[:parent_style_name] = $aodp_sn_preamble_before_paragraph if !!(@snr =~ / before-paragraph /)

lib/slim/outline.fodt.slim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
- sectnumlevels = @document.attributes["sectnumlevels"] || 3
1+
- sectnumlevels = (@document.attributes["sectnumlevels"] || 3).to_i
22
- unless sections.empty?
33
- toclevels ||= (document.attr 'toclevels', 3).to_i
44
- slevel = section_level sections.first

lib/slim/quote.fodt.slim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- puts 'WARNING: quote blocks are not yet supported:'
2+
- puts content

lib/slim/section.fodt.slim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
- sectnumlevels = @document.attributes["sectnumlevels"] || 3
1+
- sectnumlevels = (@document.attributes["sectnumlevels"] || 3).to_i
22
- section_style = "adoc_s sp_sl_#{level} #{get_basic_style}"
33
- section_style += "sp_sn_#{(attr :sectname)}" if @attributes.key?("sectname")
44
- section_style += "sp_s_#{(attr :style)}" if @attributes.key?("style")

0 commit comments

Comments
 (0)