Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

…lines 1–15 unchanged (15 lines)
16 border_color = beautiful.border_color,
17 widget = wibox.widget.progressbar,
18 },
19 {
20 text = "50%",
21 valign = "center",
22 align = "center",
23 widget = wibox.widget.textbox,
24 },
25 layout = wibox.layout.stack
26 }
27
28) --DOC_HIDE
29--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
30

After

…lines 1–15 unchanged (15 lines)
16 border_color = beautiful.border_color,
17 widget = wibox.widget.progressbar,
18 },
19 {
20 text = "50%",
21 valign = "center",
22 halign = "center",
23 widget = wibox.widget.textbox,
24 },
25 layout = wibox.layout.stack
26 }
27
28) --DOC_HIDE
29--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
30

Before

chunk
comment
-- "--"
comment_content "DOC_GEN_IMAGE --DOC_HIDE"
variable_declaration
local "local"
assignment_statement
variable_list
identifier "parent"
= "="
expression_list
vararg_expression "..."
comment
-- "--"
comment_content "DOC_NO_USAGE --DOC_HIDE"
variable_declaration
local "local"
assignment_statement
variable_list
identifier "wibox"
= "="
expression_list
function_call
identifier "require"
arguments
( "("
string
" "\""
string_content "wibox"
" "\""
) ")"
comment
-- "--"
comment_content "DOC_HIDE"
variable_declaration
local "local"
assignment_statement
variable_list
identifier "beautiful"
= "="
expression_list
function_call
identifier "require"
arguments
( "("
string
" "\""
string_content "beautiful"
" "\""
) ")"
comment
-- "--"
comment_content "DOC_HIDE"
function_call
method_index_expression
identifier "parent"
: ":"
identifier "add"
arguments
( "("
comment
-- "--"
comment_content "DOC_HIDE"
function_call
dot_index_expression
identifier "wibox"
. "."
identifier "widget"
arguments
table_constructor
{ "{"
field (+53 nodes collapsed)
, ","
field
table_constructor
{ "{"
field
identifier "text"
= "="
string
" "\""
string_content "50%"
" "\""
, ","
field
identifier "valign"
= "="
string
" "\""
string_content "center"
" "\""
, ","
field
identifier "align"
= "="
string
" "\""
string_content "center"
" "\""
, ","
field
identifier "widget"
= "="
dot_index_expression
dot_index_expression
identifier "wibox"
. "."
identifier "widget"
. "."
identifier "textbox"
, ","
} "}"
, ","
field
identifier "layout"
= "="
dot_index_expression
dot_index_expression
identifier "wibox"
. "."
identifier "layout"
. "."
identifier "stack"
} "}"
) ")"
comment
-- "--"
comment_content "DOC_HIDE"
comment
-- "--"
comment_content "DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:"...

After

chunk
comment
-- "--"
comment_content "DOC_GEN_IMAGE --DOC_HIDE"
variable_declaration
local "local"
assignment_statement
variable_list
identifier "parent"
= "="
expression_list
vararg_expression "..."
comment
-- "--"
comment_content "DOC_NO_USAGE --DOC_HIDE"
variable_declaration
local "local"
assignment_statement
variable_list
identifier "wibox"
= "="
expression_list
function_call
identifier "require"
arguments
( "("
string
" "\""
string_content "wibox"
" "\""
) ")"
comment
-- "--"
comment_content "DOC_HIDE"
variable_declaration
local "local"
assignment_statement
variable_list
identifier "beautiful"
= "="
expression_list
function_call
identifier "require"
arguments
( "("
string
" "\""
string_content "beautiful"
" "\""
) ")"
comment
-- "--"
comment_content "DOC_HIDE"
function_call
method_index_expression
identifier "parent"
: ":"
identifier "add"
arguments
( "("
comment
-- "--"
comment_content "DOC_HIDE"
function_call
dot_index_expression
identifier "wibox"
. "."
identifier "widget"
arguments
table_constructor
{ "{"
field (+53 nodes collapsed)
, ","
field
table_constructor
{ "{"
field
identifier "text"
= "="
string
" "\""
string_content "50%"
" "\""
, ","
field
identifier "valign"
= "="
string
" "\""
string_content "center"
" "\""
, ","
field
identifier "halign"
= "="
string
" "\""
string_content "center"
" "\""
, ","
field
identifier "widget"
= "="
dot_index_expression
dot_index_expression
identifier "wibox"
. "."
identifier "widget"
. "."
identifier "textbox"
, ","
} "}"
, ","
field
identifier "layout"
= "="
dot_index_expression
dot_index_expression
identifier "wibox"
. "."
identifier "layout"
. "."
identifier "stack"
} "}"
) ")"
comment
-- "--"
comment_content "DOC_HIDE"
comment
-- "--"
comment_content "DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:"...