@@ -48,7 +48,8 @@ void Tag_create_module_file(
4848
4949 stack .format (final_text ,"#endif\n" );
5050
51- dtw .write_string_file_content (final_text_path -> rendered_text ,final_text -> rendered_text );
51+
52+ write_element_if_not_equal (final_text_path -> rendered_text ,final_text -> rendered_text );
5253 UniversalGarbage_free (garbage );
5354
5455}
@@ -75,7 +76,7 @@ void replace_import_file(const char *current_file_path,const char *module_path){
7576 if (start_scope_index == -1 ){
7677 //means its not implemented
7778 stack .self_insert_at (file_content_stack ,0 ,text_to_insert -> rendered_text );
78- dtw . write_string_file_content (current_file_path ,file_content_stack -> rendered_text );
79+ write_element_if_not_equal (current_file_path ,file_content_stack -> rendered_text );
7980 UniversalGarbage_free (garbage );
8081 return ;;
8182 }
@@ -90,7 +91,7 @@ void replace_import_file(const char *current_file_path,const char *module_path){
9091 //replace the content
9192 stack .self_pop (file_content_stack ,start_scope_index ,end_scope_index + end_scope_size - 1 );
9293 stack .self_insert_at (file_content_stack ,start_scope_index ,text_to_insert -> rendered_text );
93- dtw . write_string_file_content (current_file_path ,file_content_stack -> rendered_text );
94+ write_element_if_not_equal (current_file_path ,file_content_stack -> rendered_text );
9495 UniversalGarbage_free (garbage );
9596}
9697
0 commit comments