///////////////////////////////////////////////////////////////////////////
| 235 | |
| 236 | //////////////////////////////////////////////////////////////////////////////// |
| 237 | void setHeaderUnderline(Table& table) { |
| 238 | // If an alternating row color is specified, notify the table. |
| 239 | if (Context::getContext().color()) { |
| 240 | Color alternate(Context::getContext().config.get("color.alternate")); |
| 241 | table.colorOdd(alternate); |
| 242 | table.intraColorOdd(alternate); |
| 243 | |
| 244 | if (Context::getContext().config.getBoolean("fontunderline")) { |
| 245 | table.colorHeader(Color("underline " + Context::getContext().config.get("color.label"))); |
| 246 | } else { |
| 247 | table.colorHeader(Color(Context::getContext().config.get("color.label"))); |
| 248 | table.underlineHeaders(); |
| 249 | } |
| 250 | } else { |
| 251 | if (Context::getContext().config.getBoolean("fontunderline")) |
| 252 | table.colorHeader(Color("underline")); |
| 253 | else |
| 254 | table.underlineHeaders(); |
| 255 | } |
| 256 | } |
| 257 | |
| 258 | //////////////////////////////////////////////////////////////////////////////// |
| 259 | // Perform strtol on a string and check if the extracted value matches. |
no test coverage detected