From 20ab3a5fb636eb403357523fdd823aaedd757cc8 Mon Sep 17 00:00:00 2001 From: Lucas Schwiderski Date: Tue, 14 Dec 2021 13:39:34 +0100 Subject: [PATCH] doc: Fix example code header showing in page --- .../wibox/awidget/defaults/button.lua | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/tests/examples/wibox/awidget/defaults/button.lua b/tests/examples/wibox/awidget/defaults/button.lua index a08be8e9c..9894743db 100644 --- a/tests/examples/wibox/awidget/defaults/button.lua +++ b/tests/examples/wibox/awidget/defaults/button.lua @@ -1,12 +1,13 @@ ---DOC_GEN_IMAGE --DOC_HEADER --DOC_HIDE -local parent = ... --DOC_NO_USAGE --DOC_HIDE -local awful = {--DOC_HIDE - button = require("awful.button"), --DOC_HIDE - widget = {button = require("awful.widget.button")} --DOC_HIDE -}--DOC_HIDE -local beautiful = require("beautiful") --DOC_HIDE +--DOC_HIDE_START --DOC_GEN_IMAGE --DOC_NO_USAGE +local parent = ... +local awful = { + button = require("awful.button"), + widget = {button = require("awful.widget.button")} +} +local beautiful = require("beautiful") - local button = --DOC_HIDE + local button = + --DOC_HIDE_END awful.widget.button { image = beautiful.awesome_icon, buttons = { @@ -16,7 +17,8 @@ local beautiful = require("beautiful") --DOC_HIDE } } -button.forced_height = 24 --DOC_HIDE -button.forced_width = 24 --DOC_HIDE +--DOC_HIDE_START +button.forced_height = 24 +button.forced_width = 24 -parent:add(button) --DOC_HIDE +parent:add(button)