We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
--enable-frozen-string-literal
1 parent 6889c47 commit 0ea6529Copy full SHA for 0ea6529
2 files changed
.github/workflows/ruby.yml
@@ -22,6 +22,7 @@ jobs:
22
- 3.2
23
- 3.3
24
- 3.4
25
+ - 4.0
26
- head
27
28
steps:
@@ -36,3 +37,6 @@ jobs:
36
37
env:
38
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
39
run: bundle exec rake spec
40
+ env:
41
+ RUBYOPT: "--enable-frozen-string-literal --debug-frozen-string-literal"
42
+
lib/docx/containers/paragraph.rb
@@ -44,7 +44,7 @@ def to_s
44
45
# Return paragraph as a <p></p> HTML fragment with formatting based on properties.
46
def to_html
47
- html = ''
+ html = +''
48
text_runs.each do |text_run|
49
html << text_run.to_html
50
end
0 commit comments