This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -400,7 +400,7 @@ where
400
400
shape. block( ) . indent. to_string_with_newline( context. config) ,
401
401
)
402
402
} ;
403
- if last_line_width ( & args) + first_line_width ( & output) <= shape. width {
403
+ if output . is_empty ( ) || last_line_width ( & args) + first_line_width ( & output) <= shape. width {
404
404
Some ( format ! ( "{}{}" , args, output) )
405
405
} else {
406
406
Some ( format ! (
Original file line number Diff line number Diff line change
1
+ // rustfmt-indent_style: Visual
2
+ type CNodeSetAtts = unsafe extern "C" fn ( node : * const RsvgNode ,
3
+ node_impl : * const RsvgCNodeImpl ,
4
+ handle : * const RsvgHandle ,
5
+ pbag : * const PropertyBag )
6
+ ;
7
+ type CNodeDraw = unsafe extern "C" fn ( node : * const RsvgNode ,
8
+ node_impl : * const RsvgCNodeImpl ,
9
+ draw_ctx : * const RsvgDrawingCtx ,
10
+ dominate : i32 ) ;
Original file line number Diff line number Diff line change
1
+ // rustfmt-indent_style: Visual
2
+ type CNodeSetAtts = unsafe extern "C" fn ( node : * const RsvgNode ,
3
+ node_impl : * const RsvgCNodeImpl ,
4
+ handle : * const RsvgHandle ,
5
+ pbag : * const PropertyBag ) ;
6
+ type CNodeDraw = unsafe extern "C" fn ( node : * const RsvgNode ,
7
+ node_impl : * const RsvgCNodeImpl ,
8
+ draw_ctx : * const RsvgDrawingCtx ,
9
+ dominate : i32 ) ;
You can’t perform that action at this time.
0 commit comments