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–4 unchanged (4 lines)
5-- @staticfct awful.placement.maximize_horizontally --DOC_HEADER
6
7screen[1]._resize {width = 128, height = 96} --DOC_HIDE
8local placement = require("awful.placement") --DOC_HIDE
9
10local c = client.gen_fake {x = 45, y = 35, width=40, height=30} --DOC_HIDE
11placement.maximize_horizontally(c)
12
13assert(c.width + 2*c.border_width == screen[1].geometry.width) --DOC_HIDE
14assert(c.y == 35) --DOC_HIDE
15assert(c.height == 30) --DOC_HIDE
16
17--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
18

After

…lines 1–4 unchanged (4 lines)
5-- @staticfct awful.placement.maximize_horizontally --DOC_HEADER
6
7screen[1]._resize {width = 128, height = 96} --DOC_HIDE
8local placement = require("awful.placement") --DOC_HIDE
9
10local c = client.gen_fake {x = 45, y = 35, width=40, height=30} --DOC_HIDE
11c:_hide_all() --DOC_HIDE
12placement.maximize_horizontally(c)
13
14assert(c.width + 2*c.border_width == screen[1].geometry.width) --DOC_HIDE
15assert(c.y == 35) --DOC_HIDE
16assert(c.height == 30) --DOC_HIDE
17
18--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
19

Before

chunk
comment
-- "--"
comment_content "DOC_GEN_IMAGE --DOC_HIDE"
comment
-- "--"
comment_content " Horizontally maximize the drawable in the parent area. --DO"...
comment
-- "--"
comment_content " @tparam drawable d A drawable (like `client` or `wibox`) --"...
comment
-- "--"
comment_content " @tparam[opt={}] table args Other arguments\") --DOC_HEADER"
comment
-- "--"
comment_content " @staticfct awful.placement.maximize_horizontally --DOC_HEAD"...
function_call (+22 nodes collapsed)
comment
-- "--"
comment_content "DOC_HIDE"
variable_declaration
local "local"
assignment_statement
variable_list
identifier "placement"
= "="
expression_list
function_call
identifier "require"
arguments
( "("
string
" "\""
string_content "awful.placement"
" "\""
) ")"
comment
-- "--"
comment_content "DOC_HIDE"
variable_declaration (+35 nodes collapsed)
comment
-- "--"
comment_content "DOC_HIDE"
function_call
dot_index_expression
identifier "placement"
. "."
identifier "maximize_horizontally"
arguments
( "("
identifier "c"
) ")"
function_call (+31 nodes collapsed)
comment
-- "--"
comment_content "DOC_HIDE"
function_call
identifier "assert"
arguments
( "("
binary_expression
dot_index_expression
identifier "c"
. "."
identifier "y"
== "=="
number "35"
) ")"
comment
-- "--"
comment_content "DOC_HIDE"
function_call
identifier "assert"
arguments
( "("
binary_expression
dot_index_expression
identifier "c"
. "."
identifier "height"
== "=="
number "30"
) ")"
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"
comment
-- "--"
comment_content " Horizontally maximize the drawable in the parent area. --DO"...
comment
-- "--"
comment_content " @tparam drawable d A drawable (like `client` or `wibox`) --"...
comment
-- "--"
comment_content " @tparam[opt={}] table args Other arguments\") --DOC_HEADER"
comment
-- "--"
comment_content " @staticfct awful.placement.maximize_horizontally --DOC_HEAD"...
function_call (+22 nodes collapsed)
comment
-- "--"
comment_content "DOC_HIDE"
variable_declaration
local "local"
assignment_statement
variable_list
identifier "placement"
= "="
expression_list
function_call
identifier "require"
arguments
( "("
string
" "\""
string_content "awful.placement"
" "\""
) ")"
comment
-- "--"
comment_content "DOC_HIDE"
variable_declaration (+35 nodes collapsed)
comment
-- "--"
comment_content "DOC_HIDE"
function_call
method_index_expression
identifier "c"
: ":"
identifier "_hide_all"
arguments
( "("
) ")"
comment
-- "--"
comment_content "DOC_HIDE"
function_call
dot_index_expression
identifier "placement"
. "."
identifier "maximize_horizontally"
arguments
( "("
identifier "c"
) ")"
function_call (+31 nodes collapsed)
comment
-- "--"
comment_content "DOC_HIDE"
function_call
identifier "assert"
arguments
( "("
binary_expression
dot_index_expression
identifier "c"
. "."
identifier "y"
== "=="
number "35"
) ")"
comment
-- "--"
comment_content "DOC_HIDE"
function_call
identifier "assert"
arguments
( "("
binary_expression
dot_index_expression
identifier "c"
. "."
identifier "height"
== "=="
number "30"
) ")"
comment
-- "--"
comment_content "DOC_HIDE"
comment
-- "--"
comment_content "DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:"...