<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 67: Pattern Layout does not handle max size for categories </title><link>https://sourceforge.net/p/log4cpp/bugs/67/</link><description>Recent changes to 67: Pattern Layout does not handle max size for categories </description><atom:link href="https://sourceforge.net/p/log4cpp/bugs/67/feed.rss" rel="self"/><language>en</language><lastBuildDate>Thu, 03 Jul 2003 19:31:44 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/log4cpp/bugs/67/feed.rss" rel="self" type="application/rss+xml"/><item><title>Pattern Layout does not handle max size for categories </title><link>https://sourceforge.net/p/log4cpp/bugs/67/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Marc</dc:creator><pubDate>Thu, 03 Jul 2003 19:31:44 -0000</pubDate><guid>https://sourceforge.net5c935311253027aa9847e63faefffcc4851df6d4</guid></item></channel></rss>