summaryrefslogtreecommitdiff
path: root/biblio/citation-style-language/citeproc-node-layout.lua
diff options
context:
space:
mode:
Diffstat (limited to 'biblio/citation-style-language/citeproc-node-layout.lua')
-rw-r--r--biblio/citation-style-language/citeproc-node-layout.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/biblio/citation-style-language/citeproc-node-layout.lua b/biblio/citation-style-language/citeproc-node-layout.lua
index 168f923b08..4996ddd9f2 100644
--- a/biblio/citation-style-language/citeproc-node-layout.lua
+++ b/biblio/citation-style-language/citeproc-node-layout.lua
@@ -1,5 +1,5 @@
--
--- Copyright (c) 2021-2022 Zeping Lee
+-- Copyright (c) 2021-2023 Zeping Lee
-- Released under the MIT license.
-- Repository: https://github.com/zepinglee/citeproc-lua
--
@@ -11,6 +11,7 @@ local SeqIr = require("citeproc-ir-node").SeqIr
local util = require("citeproc-util")
+---@class Layout: Element
local Layout = Element:derive("layout")
function Layout:from_node(node)
@@ -19,6 +20,9 @@ function Layout:from_node(node)
o:set_formatting_attributes(node)
o:get_delimiter_attribute(node)
+ -- CSL-M: layout
+ o:set_attribute(node, "locale")
+
o:process_children_nodes(node)
return o