Write a function format_transactions that receives a list of strings, each representing a trade in the form "item=price". The price may be an integer or a float and may have surrounding whitespace. Your function must:
- Parse each line into a name and a numeric price.
- Return a single string containing one line per trade.
- Each line should have the name left‑aligned in a 10‑character field, followed by a dollar sign and the price right‑aligned in a 7‑character field, shown with exactly two decimal places.
- Lines are separated by
"\n"; an empty input list should produce an empty string.
Example
format_transactions(["apple=1.5", "banana=2"])
# returns "apple $ 1.50\nbanana $ 2.00"