Lines Matching defs:tabs
52 local function tabs(str, width)
54 local tabs = ("\t"):rep((width - strwidth + 7) // 8)
55 if tabs == "" then
58 assert(tabs ~= "")
59 return tabs
63 assert_equals(tabs("", 8), "\t")
64 assert_equals(tabs("1234567", 8), "\t")
65 assert_equals(tabs("", 64), "\t\t\t\t\t\t\t\t")
269 -- The flags are already aligned, 4 tabs to the right of the category.
281 -- Amend the entries by the tabs used for alignment.
311 entry.category_tabs = tabs(prefix .. fullname, category_col)
313 entry.flags_tabs = tabs(category, flags_col)