mirror of
				https://github.com/Nioux/AideDeJeu.git
				synced 2025-10-30 23:16:09 +00:00 
			
		
		
		
	Correctif parsing
This commit is contained in:
		
							parent
							
								
									3938bb42e4
								
							
						
					
					
						commit
						50cff9b0ec
					
				
					 2 changed files with 17 additions and 6 deletions
				
			
		|  | @ -89,19 +89,22 @@ namespace AideDeJeu.ViewModels | ||||||
|                                 var items = currentItem as Items; |                                 var items = currentItem as Items; | ||||||
|                                 items.Add(subItem); |                                 items.Add(subItem); | ||||||
|                             } |                             } | ||||||
|  |                             enumerator.MoveNext(); | ||||||
|  |                         } | ||||||
|  |                         else | ||||||
|  |                         { | ||||||
|  |                             currentItem.Markdown += enumerator.Current.ToMarkdownString(); | ||||||
|  |                             enumerator.MoveNext(); | ||||||
|                         } |                         } | ||||||
|                     } |                     } | ||||||
| 
 |                     else | ||||||
|                     else // if (block is ContainerBlock) |  | ||||||
|                     { |                     { | ||||||
|                         ParseItemProperties(source, currentItem, block); |                         ParseItemProperties(source, currentItem, block); | ||||||
|                     } |  | ||||||
| 
 |  | ||||||
|                         currentItem.Markdown += enumerator.Current.ToMarkdownString(); |                         currentItem.Markdown += enumerator.Current.ToMarkdownString(); | ||||||
| 
 |  | ||||||
|                         enumerator.MoveNext(); |                         enumerator.MoveNext(); | ||||||
|                     } |                     } | ||||||
|                 } |                 } | ||||||
|  |             } | ||||||
| 
 | 
 | ||||||
|             currentItem.Id = GetNewAnchorId(source, currentItem.Name); |             currentItem.Id = GetNewAnchorId(source, currentItem.Name); | ||||||
|             _AllItems[currentItem.Id] = currentItem; |             _AllItems[currentItem.Id] = currentItem; | ||||||
|  |  | ||||||
|  | @ -1,4 +1,5 @@ | ||||||
| using AideDeJeu.ViewModels; | using AideDeJeu.ViewModels; | ||||||
|  | using AideDeJeuLib; | ||||||
| using Microsoft.VisualStudio.TestTools.UnitTesting; | using Microsoft.VisualStudio.TestTools.UnitTesting; | ||||||
| 
 | 
 | ||||||
| namespace AideDeJeuUnitTest | namespace AideDeJeuUnitTest | ||||||
|  | @ -12,6 +13,13 @@ namespace AideDeJeuUnitTest | ||||||
|             var store = new StoreViewModel(); |             var store = new StoreViewModel(); | ||||||
|             var item = store.ToItem(null, AideDeJeu.Tools.Helpers.GetResourceString($"AideDeJeu.Data.sandbox.md")); |             var item = store.ToItem(null, AideDeJeu.Tools.Helpers.GetResourceString($"AideDeJeu.Data.sandbox.md")); | ||||||
|             var md = item.Markdown; |             var md = item.Markdown; | ||||||
|  |             if(item is Items) | ||||||
|  |             { | ||||||
|  |                 foreach(var iitem in item as Items) | ||||||
|  |                 { | ||||||
|  |                     md += iitem.Markdown; | ||||||
|  |                 } | ||||||
|  |             } | ||||||
|             Assert.IsNotNull(md); |             Assert.IsNotNull(md); | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Yan Maniez
						Yan Maniez