File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -673,7 +673,7 @@ fn get_sheet_data(
673
673
for ( i, h) in hyperlinks. iter ( ) . enumerate ( ) {
674
674
let mut hyperlink_el = Element :: new ( "hyperlink" ) ;
675
675
hyperlink_el
676
- . add_attr ( "r:id" , format ! ( "rId{}" , 1000 + i) )
676
+ . add_attr ( "r:id" , format ! ( "rId{}" , 1 + i) )
677
677
. add_attr ( "ref" , & h. cell ) ;
678
678
hyperlink_children. push ( hyperlink_el) ;
679
679
}
@@ -728,7 +728,7 @@ fn get_sheet_rels(hyperlinks: &[Hyperlink]) -> String {
728
728
729
729
for ( i, link) in hyperlinks. iter ( ) . enumerate ( ) {
730
730
let mut rel = Element :: new ( "Relationship" ) ;
731
- rel. add_attr ( "Id" , format ! ( "rId{}" , 1000 + i) ) ;
731
+ rel. add_attr ( "Id" , format ! ( "rId{}" , 1 + i) ) ;
732
732
rel. add_attr ( "Type" , "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" ) ;
733
733
rel. add_attr ( "Target" , & link. url ) ;
734
734
rel. add_attr ( "TargetMode" , "External" ) ;
You can’t perform that action at this time.
0 commit comments