<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 67: Pattern Layout does not handle max size for categories </title><link href="https://sourceforge.net/p/log4cpp/bugs/67/" rel="alternate"/><link href="https://sourceforge.net/p/log4cpp/bugs/67/feed.atom" rel="self"/><id>https://sourceforge.net/p/log4cpp/bugs/67/</id><updated>2003-07-03T19:31:44Z</updated><subtitle>Recent changes to 67: Pattern Layout does not handle max size for categories </subtitle><entry><title>Pattern Layout does not handle max size for categories </title><link href="https://sourceforge.net/p/log4cpp/bugs/67/" rel="alternate"/><published>2003-07-03T19:31:44Z</published><updated>2003-07-03T19:31:44Z</updated><author><name>Marc</name><uri>https://sourceforge.net/u/mcalahan/</uri></author><id>https://sourceforge.net5c935311253027aa9847e63faefffcc4851df6d4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The std::string will throw an exception if the max size&lt;br /&gt;
for a category is greater then the name of the category.&lt;/p&gt;
&lt;p&gt;Example:&lt;br /&gt;
%{10.10c}&lt;/p&gt;
&lt;p&gt;Category:&lt;br /&gt;
test&lt;/p&gt;
&lt;p&gt;This will fail.  The correct behavior should be to pad&lt;br /&gt;
it with spaces.&lt;/p&gt;
&lt;p&gt;The problem is in FormatModifierComponent.append:&lt;br /&gt;
if (_maxWidth &amp;amp;gt; 0) {&lt;br /&gt;
msg.erase(_maxWidth);&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>