diff --git a/kicad/pcm/dialogs/panel_packages_view.cpp b/kicad/pcm/dialogs/panel_packages_view.cpp index d2c6b4693c..d1e6d3bfe4 100644 --- a/kicad/pcm/dialogs/panel_packages_view.cpp +++ b/kicad/pcm/dialogs/panel_packages_view.cpp @@ -182,12 +182,15 @@ void PANEL_PACKAGES_VIEW::setPackageDetails( const PACKAGE_VIEW_DATA& aPackageDa if( inURL ) { - if( c == ' ' ) + if( c == ' ' || c == '\n') { result += wxString::Format( wxT( "%s" ), url, url ); inURL = false; - result += c; + if( c == '\n' ) + result += wxT( "
" ); + else + result += c; } else { @@ -210,6 +213,9 @@ void PANEL_PACKAGES_VIEW::setPackageDetails( const PACKAGE_VIEW_DATA& aPackageDa } } + if( inURL ) + result += wxString::Format( wxT( "%s" ), url, url ); + return result; };