Order meta data as comment, tags, ref

OrganicMaps:
comment =
tags =
ref =
dev-LANG =
other-LANG =

Twine original:
dev-LANG =
ref =
tags =
comment =
other-LANG =

fix
This commit is contained in:
Dwayne Bailey 2024-09-18 18:39:35 +01:00
parent e9386d15bf
commit a1d5145558

View file

@ -215,15 +215,15 @@ module Twine
section.definitions.each do |definition|
f.puts "#{space(2)}[#{definition.key}]"
if definition.reference_key
f.puts "#{space(4)}ref = #{definition.reference_key}"
if definition.raw_comment and definition.raw_comment.length > 0
f.puts "#{space(4)}comment = #{definition.raw_comment}"
end
if definition.tags && definition.tags.length > 0
tag_str = definition.tags.join(',')
f.puts "#{space(4)}tags = #{tag_str}"
end
if definition.raw_comment and definition.raw_comment.length > 0
f.puts "#{space(4)}comment = #{definition.raw_comment}"
if definition.reference_key
f.puts "#{space(4)}ref = #{definition.reference_key}"
end
value = write_value(definition, dev_lang, f)