kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #23799
[PATCH] Eeschema creating extra whitespace in .lib
Hi folks,
Working on the libraries, we noticed opening and saving back a lib with
KiCad creating a big diff mainly because of extra whitespace.
The attached patch fixes this. I can commit it once I have the green light.
Regards,
Carl
=== modified file 'eeschema/lib_polyline.cpp'
--- eeschema/lib_polyline.cpp 2015-11-03 19:44:05 +0000
+++ eeschema/lib_polyline.cpp 2016-03-13 20:45:09 +0000
@@ -63,7 +63,7 @@
for( unsigned i = 0; i < GetCornerCount(); i++ )
{
- aFormatter.Print( 0, " %d %d", m_PolyPoints[i].x, m_PolyPoints[i].y );
+ aFormatter.Print( 0, " %d %d", m_PolyPoints[i].x, m_PolyPoints[i].y );
}
aFormatter.Print( 0, " %c\n", fill_tab[m_Fill] );
=== modified file 'eeschema/lib_text.cpp'
--- eeschema/lib_text.cpp 2015-11-08 10:10:52 +0000
+++ eeschema/lib_text.cpp 2016-03-13 20:46:08 +0000
@@ -71,7 +71,7 @@
text.Replace( wxT( " " ), wxT( "~" ) );
}
- aFormatter.Print( 0, "T %g %d %d %d %d %d %d %s ", GetOrientation(), m_Pos.x, m_Pos.y,
+ aFormatter.Print( 0, "T %g %d %d %d %d %d %d %s", GetOrientation(), m_Pos.x, m_Pos.y,
m_Size.x, m_Attributs, m_Unit, m_Convert, TO_UTF8( text ) );
aFormatter.Print( 0, " %s %d", m_Italic ? "Italic" : "Normal", ( m_Bold > 0 ) ? 1 : 0 );
Follow ups